home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / PROGBLER / PC37030.LZH / PC37030.ZIP / SSP.DOC < prev    next >
Text File  |  1987-08-20  |  2KB  |  38 lines

  1. SSP.DOC PC/370 Scientific Subroutine Package
  2.  
  3.     Using floating point 370 instructions plus extended 80x87 function
  4.     SVC's described in FP87.DOC, a set of quite efficient scientific
  5.     subroutines have been coded in SSP.ALC and can be assembled and
  6.     added to the L370.LIB subroutine library via BLDSSP.BAT.  Note
  7.     that BLDLIB.BAT does not include SSP routines to save link time
  8.     for users without 80x87 or the need for floating point functions.
  9.     Run RUNSSP.BAT to assemble, link, and execute TESTSSP.ALC program.
  10.     The argument and result is in F0 or R0 unless noted otherwise.
  11.     The SSP functions are similiar to the FORTRAN IV intrinsic functions.
  12.  
  13.     FUNCTION   DESCRIPTION   RANGE LIMITATIONS           NOTES
  14.  
  15.     ATAN       ARCTAN
  16.     ALOG       LOG BASE E    0 < F0
  17.     ALOG10     LOG BASE 10   0 < F0
  18.     COS        COSINE
  19.     EXP        E ** X
  20.     REAL       CVT TO REAL   -2**32 <= R0 < 2**32        ARG. IN R0
  21.     INT        CVT TO INT    -2**32 <= F0 < 2**32        RESULT IN R0
  22.     MOD        MOD(F0,F2)                                REMAINDER IN F0
  23.     PI         PI            3.14159.............        DOUBLE PREC. PI
  24.     SIN        SINE
  25.     SQRT       SQUARE ROOT   0 <= F0
  26.     TAN        TANGENT
  27.  
  28.     A future enhancement depending on interest, is to add other
  29.     derived functions.  Any feedback on usage of these functions would
  30.     be appreciated.  I am particularly interested in benchmarking the
  31.     80x87 microcoded support of floating point functions via PC/370
  32.     versus similiar functions on a 370 which use algorithms derived with
  33.     basic floating point add, subtract, multiply, and divide.  In addition
  34.     to speed, I'm interested in any observed numerial differences for
  35.     single and double precision functions.  Here's an opportunity for some
  36.     of you math majors to use some numerical analysis again.
  37.     Run RUNSSP.BAT for test and demo usage of SSP subroutines.
  38.